#ifndef OUTPUT_THREAD_H
#define OUTPUT_THREAD_H

#include <pthread.h>
#include <stdlib.h>
#include <stdbool.h>

#include "IRC_core.h"
#include "queue.h"

struct output_thread 
{
	int is_running;
	pthread_t thread;
	struct IRC_core *IRC_core_t;
	struct queue *queue;
};

int send_message( char *msg );
void wake_up_output_thread();
struct output_thread * new_output_thread( struct IRC_core *IRC_core_t );
void delete_output_thread();

#endif /* OUTPUT_THREAD_H */
